<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>购物商城-购物车</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/sp_cart.css">
</head>
<body>
	<div class="sp_cart_div">
		<jsp:include page="head.jsp"></jsp:include>
	</div>
	<div class="sp_cart_div1">
		<table>
			<tr class="sp_tr1">
				<td class="sp_td1"><input type="checkbox">全选</td>
				<td class="sp_td2" colspan="2">商品名称</td>
				<td class="sp_td3">积分</td>
				<td class="sp_td4">疯狂价</td>
				<td class="sp_td5">小计</td>
				<td class="sp_td6">数量</td>
				<td class="sp_td7">操作</td>
			</tr>

			<tr class="sp_tr2">
			
			<c:forEach var="li" items="${car_list }" varStatus="status"  >
						<td class="sp_td_n1"><input type="checkbox" name="sp"></td>
				<td class="sp_td_n2"><img alt="找不到图片"
					src="${pageContext.request.contextPath }/image/article/${li.image}"></td>
				<td class="sp_td_n3"><a href=""> ${li.title} </a></td>
				<td class="sp_td_n4"><span>0</span></td>
				<td class="sp_td_n5"><span>￥${li.PRICE}(${li.DISCOUNT}折)</span></td>
				<td class="sp_td_n6"><span>￥${li.PRICE*li.buyNum}</span></td>
				<td class="sp_td_n7"><span>${li.buyNum}</span></td>
				<td class="sp_td_n3"><a href="">删除商品</a></td>
						<!-- 处理一行显示几个图片 -->

						<c:if test="${status.count%1==0 }">

							<tr>
						</c:if>

					</c:forEach>
			
			
				
			</tr>
		</table>

	</div>
	<div class="sp_cart_div2">
		<table>
			<tr>
				<td>数量总计：<span>6</span>(件)
				</td>
			</tr>
			<tr>
				<td>金额总数：￥<span>348.00</span>（折后价）
				</td>
			</tr>
			<tr>
				<td><a href="${pageContext.request.contextPath}/jsp/index.jsp"> <img alt="找不到图片"
						src="${pageContext.request.contextPath}/image/shop.jpg"></a> <a href="${pageContext.request.contextPath}/jsp/order.jsp"> <img
						alt="找不到图片" src="${pageContext.request.contextPath }/image/balance.jpg"></a></td>
			</tr>
		</table>
	</div>


</body>
</html>